<div style="margin: 5px;" data-bind="foreach: boxes">
    <fieldset class="layui-elem-field" style="margin: 0 0 20px;">
        <legend data-bind="text: title"></legend>
        <div style="margin: 3px 10px 8px;">
            <!-- ko if: typeof type != 'undefined' && type == 'buttonGroup' -->
            <!-- ko foreach: buttons -->
            <button class="layui-btn" data-bind="css: css, click: $parents[1].clickBtn">
                <span data-bind="text: name"></span>
                <span style="display: none;" class="layui-badge layui-bg" data-bind="text: number"></span>
            </button>
            <!-- /ko -->
            <!-- /ko -->
            <!-- ko if: typeof type != 'undefined' && type == 'panelGroup' -->
            <div class="layui-collapse" lay-accordion="">
                <div class="layui-row" data-bind="foreach: panels">
                    <div class="my-box layui-col-xs2">
                        <div class="layui-colla-item" data-bind="click: $parents[1].clickCollaItem">
                            <div class="layui-colla-title">
                                <h2 class="layui-layout-left" style="left: 40px;">
                                    <span data-bind="text: name"></span>
                                    <span class="layui-badge layui-bg-blue" data-bind="text: number"></span>
                                </h2>
                                <div class="layui-layout-right" style="display: none;">
                                    <div data-bind="attr: {id: 'pagination-id-' + $parent.title + '-' + $index()}, click: function(){}, clickBubble: false"></div>
                                </div>
                            </div>
                            <div class="layui-colla-content" style="padding-top: 0;">
                                <!-- ko module: 'template/anJian/table/table' -->
                                <!-- /ko -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /ko -->
        </div>
    </fieldset>
</div>
